package routers

import (
	_ "graduate_student/apis"
	middlewares "graduate_student/middleWare"
	_ "graduate_student/model"

	"github.com/gin-gonic/gin"
)

func sysNoCheckRoleRouter(r *gin.RouterGroup) {
	r = r.Group("/")
	Examinee(r)
	MajorDic(r)
	FirstGrade(r)
	SecondGrade(r)
	Admission(r)
	Login(r)
}

func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(middlewares.CORSMiddleware())
	g := r.Group("")
	sysNoCheckRoleRouter(g)
	return r
}
